summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-19 01:03:56 +0100
committerGitHub <noreply@github.com>2024-02-19 01:03:56 +0100
commitef89b79d7e2736c9e00cbf23dfb650c817e47ae6 (patch)
tree48d447baff19a4a12b5ed7ffa5d26cd92c21a559
parentMerge pull request #13030 from german77/audio-controller (diff)
parentam: account for offset in transfer memory storage (diff)
downloadyuzu-ef89b79d7e2736c9e00cbf23dfb650c817e47ae6.tar
yuzu-ef89b79d7e2736c9e00cbf23dfb650c817e47ae6.tar.gz
yuzu-ef89b79d7e2736c9e00cbf23dfb650c817e47ae6.tar.bz2
yuzu-ef89b79d7e2736c9e00cbf23dfb650c817e47ae6.tar.lz
yuzu-ef89b79d7e2736c9e00cbf23dfb650c817e47ae6.tar.xz
yuzu-ef89b79d7e2736c9e00cbf23dfb650c817e47ae6.tar.zst
yuzu-ef89b79d7e2736c9e00cbf23dfb650c817e47ae6.zip
-rw-r--r--src/core/hle/service/am/library_applet_storage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/am/library_applet_storage.cpp b/src/core/hle/service/am/library_applet_storage.cpp
index 46e6c0111..0412c215d 100644
--- a/src/core/hle/service/am/library_applet_storage.cpp
+++ b/src/core/hle/service/am/library_applet_storage.cpp
@@ -70,7 +70,7 @@ public:
Result Read(s64 offset, void* buffer, size_t size) override {
R_TRY(ValidateOffset(offset, size, m_size));
- m_memory.ReadBlock(m_trmem->GetSourceAddress(), buffer, size);
+ m_memory.ReadBlock(m_trmem->GetSourceAddress() + offset, buffer, size);
R_SUCCEED();
}
@@ -79,7 +79,7 @@ public:
R_UNLESS(m_is_writable, ResultUnknown);
R_TRY(ValidateOffset(offset, size, m_size));
- m_memory.WriteBlock(m_trmem->GetSourceAddress(), buffer, size);
+ m_memory.WriteBlock(m_trmem->GetSourceAddress() + offset, buffer, size);
R_SUCCEED();
}